package com.ygqh.baby.po;

import java.util.Date;

import com.ygqh.baby.ao.TaskMethod;

public class YgTaskTime {
	private Long id;

	private String mothodName;

	private Date runTime;

	private String remark;

	private Long excuteCount;

	public Long getExcuteCount() {
		return excuteCount;
	}

	public void setExcuteCount(Long excuteCount) {
		this.excuteCount = excuteCount;
	}

	public TaskMethod getTaskMehtod() {
		TaskMethod taskMethod = null;
		try {
			taskMethod = TaskMethod.valueOf(this.mothodName);
		} catch (Exception e) {
		}
		return taskMethod;

	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getMothodName() {
		return mothodName;
	}

	public void setMothodName(String mothodName) {
		this.mothodName = mothodName == null ? null : mothodName.trim();
	}

	public Date getRunTime() {
		return runTime;
	}

	public void setRunTime(Date runTime) {
		this.runTime = runTime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark == null ? null : remark.trim();
	}

	@Override
	public String toString() {
		return "YgTaskTime{" +
				"id=" + id +
				", mothodName='" + mothodName + '\'' +
				", runTime=" + runTime +
				", remark='" + remark + '\'' +
				", excuteCount=" + excuteCount +
				'}';
	}
}